<template>
  <div>
    <div class="row">
      <Banner/>
    </div>
    <div class="row">
      <div class="col-xs-2 col-xs-offset-2">
        <div class="list-group">
			<!-- 路由浏览器历史模式有2种，默认push模式，即追加模式，以及replace模式，即替换模式 -->
      <!-- 需求：将About与Home路由历史模式更改为replace模式 -->
      <!-- 操作：只需要在router-link标签中写入属性replace便会开启 -->
          <router-link
           :to="{
             name:'about',
           }"
           class="list-group-item" 
           active-class="active">
           About
           </router-link>
          <router-link to="/home" class="list-group-item" active-class="active">Home</router-link>
        </div>
      </div>
      <div class="col-xs-6">
        <div class="panel">
          <div class="panel-body">
			  <!-- 指定组件的呈现位置 -->
            <router-view></router-view>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Banner from './components/Banner'
	export default {
		name:'App',
    components:{
      Banner,
    },
	}
</script>
